import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import elementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(elementUi)

// axios使用及全局配置
import axios from 'axios'
const _axios = axios.create({
  baseURL: process.env.VUE_APP_URL,
  withCredentials:true //跨域也携带cookie
});
Vue.prototype.$axios = _axios;

Vue.config.productionTip = false;
import router from './router/index'
import store from '@/store/index.js'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
